const num1 = 5 // 00000000000000000000000000000101

console.log(~num1);